let folderName=["ruoyi","building-and-furniture","business","clothes","cloud-computing","communication","construction","design-and-development","electronics","finance","food","HotelandRestaurant","industrial","LogisticsDelivery","medical","medical-and-health","multimedia","nature","science","security","seo-and-marketing","shopping","sports","trade","transport","travel","weather"]
let icons=[];
let req0 = require.context('../../assets/icons/svg/ruoyi', false, /\.svg$/)
let req2 = require.context('../../assets/icons/svg/business', false, /\.svg$/)
let req5 = require.context('../../assets/icons/svg/communication', false, /\.svg$/)
let req7 = require.context('../../assets/icons/svg/design-and-development', false, /\.svg$/)
let req13 = require.context('../../assets/icons/svg/LogisticsDelivery', false, /\.svg$/)
let req16 = require.context('../../assets/icons/svg/multimedia', false, /\.svg$/)
let req19 = require.context('../../assets/icons/svg/security', false, /\.svg$/)
let req20 = require.context('../../assets/icons/svg/customize', false, /\.svg$/)
for(let i=0;i<=folderName.length;i++){
  let requireAll = requireContext => requireContext.keys()
  let re = /\.\/(.*)\.svg/
  let iconsList;
  if(i==0){
    iconsList = requireAll(req0).map(i => {
      return i.match(re)[1]
    })
  }else if(i==2){
    iconsList = requireAll(req2).map(i => {
      return i.match(re)[1]
    })
  }else if(i==5){
    iconsList = requireAll(req5).map(i => {
      return i.match(re)[1]
    })
  }else if(i==7){
    iconsList = requireAll(req7).map(i => {
      return i.match(re)[1]
    })
  }else if(i==13){
    iconsList = requireAll(req13).map(i => {
      return i.match(re)[1]
    })
  }else if(i==16){
    iconsList = requireAll(req16).map(i => {
      return i.match(re)[1]
    })
  }else if(i==19){
    iconsList = requireAll(req19).map(i => {
      return i.match(re)[1]
    })
  }else if(i==20){
    iconsList = requireAll(req20).map(i => {
      return i.match(re)[1]
    })
  }
  icons.push(iconsList)
}
export default icons
